package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastRedPacket implements Serializable {
    private Integer id;

    /**
     * 领取人
     */
    private Integer createBy;

    /**
     * 领取时间
     */
    private Date createTime;

    /**
     * 红包活动id
     */
    private Integer redId;

    /**
     * 可以使用天数
     */
    private Integer validDay;

    /**
     * 该红包领取数量
     */
    private Integer times;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastRedPacket withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public RunfastRedPacket withCreateBy(Integer createBy) {
        this.setCreateBy(createBy);
        return this;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public RunfastRedPacket withCreateTime(Date createTime) {
        this.setCreateTime(createTime);
        return this;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRedId() {
        return redId;
    }

    public RunfastRedPacket withRedId(Integer redId) {
        this.setRedId(redId);
        return this;
    }

    public void setRedId(Integer redId) {
        this.redId = redId;
    }

    public Integer getValidDay() {
        return validDay;
    }

    public RunfastRedPacket withValidDay(Integer validDay) {
        this.setValidDay(validDay);
        return this;
    }

    public void setValidDay(Integer validDay) {
        this.validDay = validDay;
    }

    public Integer getTimes() {
        return times;
    }

    public RunfastRedPacket withTimes(Integer times) {
        this.setTimes(times);
        return this;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", redId=").append(redId);
        sb.append(", validDay=").append(validDay);
        sb.append(", times=").append(times);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}